MeasureText(String,Boolean,Int32,Int32,Int32[],Int32) Method
In This Topic
Measure text for this font subset.
Syntax
'Declaration
Public Overloads Function MeasureText( _
ByVal As String, _
ByVal As Boolean, _
ByRef As Integer, _
ByRef As Integer, _
ByRef () As Integer, _
Optional ByVal As Integer _
) As Integer
public int MeasureText(
string ,
bool ,
out int ,
out int ,
out int[] ,
int
)
Parameters
- text
- The text string.
- vertical
- Whether using a vertical font.
- width
- Output calculated width of the text.
- height
- Output calculated height of the text.
- charWidths
- Output calculated widths for each character.
- defaultWidth
- The default width of some character.
Return Value
If calculated then return true, otherwise false.
See Also